// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// import Vue from 'vue'
// import App from './App'
// import router from './router'

// Vue.config.productionTip = false

// /* eslint-disable no-new */
// new Vue({
//   el: '#app',
//   router,
//   components: { App },
//   template: '<App/>'
// })
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import * as echarts from "echarts"
import axios from 'axios'
import '../config/axios'
import qs from 'qs'
// import store from './store/store'
import apis from './apis/index'

//配置tooken請求頭
axios.defaults.headers.common['token'] = "fdggsdflskgg89ssfgss048728dfd59dh"
axios.defaults.headers.post['Content-type'] = 'application/json'
axios.defaults.baseURL = '/apis'

Vue.prototype.$apis = apis
Vue.prototype.$qs = qs
Vue.prototype.$echarts = echarts
Vue.prototype.$axios = axios
Vue.use(ElementUI)
Vue.config.productionTip = false
//实例化 store
// new Vue({
//   el: '#app',
//   store,
//   router,
//   template: '<App/>',
//   components: { App }
// }) 

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
